<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Getting Started: Serving Web Content</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<table  border="1">
    <tr th:each="user,userStat : ${list}">
        <td th:text="${user.id}"></td>
        <td th:text="${user.name}"></td>
        <td th:text="${user.age}"></td>
        <td th:text="${user.sex}"></td>
        <td><a th:href="@{/user/info(id=${user.id})}">详情</a></td>
        <td><a th:href="@{/user/gotoupdate(id=${user.id})}">修改</a></td>
    </tr>
    <a th:href="@{/user/gotoinsert}">添加</a>
</table>
</body>
</html>